package cn.zaichi.edu.excelcommon.error;

/**
 * 数据转换异常枚举
 */
public enum ConvertExceptionEnum implements ExcelExceptionEnum {

    CONVERT_TYPE_ERROR("字段类型转换错误",101),
    CONVERT_ERROR("数据转换失败",102);
    ;
    private String msg;
    private int status;

    private ConvertExceptionEnum(String msg, int status) {
        this.msg = msg;
        this.status = status;
    }

    @Override
    public int getStatus() {
        return status;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
